package com.model;

/**
 * Ret_msgId entity. @author MyEclipse Persistence Tools
 */

public class Ret_msgId implements java.io.Serializable {

	// Fields

	private String fab_id;
	private String sys_id;
	private String msg_id;

	// Constructors

	/** default constructor */
	public Ret_msgId() {
	}

	/** full constructor */
	public Ret_msgId(String fab_id, String sys_id, String msg_id) {
		this.fab_id = fab_id;
		this.sys_id = sys_id;
		this.msg_id = msg_id;
	}

	// Property accessors

	public String getFab_id() {
		return this.fab_id;
	}

	public void setFab_id(String fab_id) {
		this.fab_id = fab_id;
	}

	public String getSys_id() {
		return this.sys_id;
	}

	public void setSys_id(String sys_id) {
		this.sys_id = sys_id;
	}

	public String getMsg_id() {
		return this.msg_id;
	}

	public void setMsg_id(String msg_id) {
		this.msg_id = msg_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_msgId))
			return false;
		Ret_msgId castOther = (Ret_msgId) other;

		return ((this.getFab_id() == castOther.getFab_id()) || (this
				.getFab_id() != null && castOther.getFab_id() != null && this
				.getFab_id().equals(castOther.getFab_id())))
				&& ((this.getSys_id() == castOther.getSys_id()) || (this
						.getSys_id() != null && castOther.getSys_id() != null && this
						.getSys_id().equals(castOther.getSys_id())))
				&& ((this.getMsg_id() == castOther.getMsg_id()) || (this
						.getMsg_id() != null && castOther.getMsg_id() != null && this
						.getMsg_id().equals(castOther.getMsg_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getFab_id() == null ? 0 : this.getFab_id().hashCode());
		result = 37 * result
				+ (getSys_id() == null ? 0 : this.getSys_id().hashCode());
		result = 37 * result
				+ (getMsg_id() == null ? 0 : this.getMsg_id().hashCode());
		return result;
	}

}